package com.example.blogdemo1.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/*
 * @author zzr
 * @date: 2025/10/05  19:26
 * @description:
 */
public class DateUtils {
    public static String dateFormat(Date date) {
        // 2025-10-05 19:27
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return format.format(date);
    }
}
